package org.jeecg.modules.online.cgform.enhance.impl;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.jeecg.modules.online.cgform.enhance.CgformEnhanceJavaListInter;
import org.jeecg.modules.online.config.exception.BusinessException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component("cgformEnhanceQueryDemo")
/* renamed from: org.jeecg.modules.online.cgform.enhance.impl.f */
/* loaded from: hibernate-re-3.7.1-RC.jar:org/jeecg/modules/online/cgform/enhance/impl/f.class */
public class CgformEnhanceQueryDemo implements CgformEnhanceJavaListInter {

    /* renamed from: a */
    private static final Logger f353a = LoggerFactory.getLogger(CgformEnhanceQueryDemo.class);

    @Override // org.jeecg.modules.online.cgform.enhance.CgformEnhanceJavaListInter
    public void execute(String tableName, List<Map<String, Object>> data) throws BusinessException {
        List<C0014a> m273a = m273a();
        if (data == null) {
            return;
        }
        for (Map<String, Object> map : data) {
            Object obj = map.get("province");
            if (obj != null) {
                map.put("province", (String) m273a.stream().filter(c0014a -> {
                    return obj.toString().equals(c0014a.m271a());
                }).map((v0) -> {
                    return v0.m270b();
                }).findAny().orElse(""));
            }
        }
    }

    /* renamed from: a */
    private List<C0014a> m273a() {
        ArrayList arrayList = new ArrayList();
        arrayList.add(new C0014a("bj", "北京"));
        arrayList.add(new C0014a("sd", "山东"));
        arrayList.add(new C0014a("ah", "安徽"));
        return arrayList;
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* compiled from: CgformEnhanceQueryDemo.java */
    /* renamed from: org.jeecg.modules.online.cgform.enhance.impl.f$a */
    /* loaded from: hibernate-re-3.7.1-RC.jar:org/jeecg/modules/online/cgform/enhance/impl/f$a.class */
    public class C0014a {

        /* renamed from: a */
        String f354a;

        /* renamed from: b */
        String f355b;

        public C0014a(String str, String str2) {
            this.f354a = str;
            this.f355b = str2;
        }

        /* renamed from: a */
        public String m271a() {
            return this.f354a;
        }

        /* renamed from: b */
        public String m270b() {
            return this.f355b;
        }
    }
}
